package com.itheima.service.impl;

import com.itheima.dao.MemberDao;
import com.itheima.dao.OrderDao;
import com.itheima.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * 报表统计服务
 */
@Service
@Transactional
public class ReportServiceImpl implements ReportService {
    @Autowired
    private MemberDao memberDao;
    @Autowired
    private OrderDao orderDao;

    //统计运营数据报表
    public Map<String, Object> getBusinessReport() throws Exception{

        //result.put("reportDate",today);
        //result.put("todayNewMember",todayNewMember);
        //result.put("totalMember",totalMember);
        //result.put("thisWeekNewMember",thisWeekNewMember);
        //result.put("thisMonthNewMember",thisMonthNewMember);
        //result.put("todayOrderNumber",todayOrderNumber);
        //result.put("thisWeekOrderNumber",thisWeekOrderNumber);
        //result.put("thisMonthOrderNumber",thisMonthOrderNumber);
        //result.put("todayVisitsNumber",todayVisitsNumber);
        //result.put("thisWeekVisitsNumber",thisWeekVisitsNumber);
        //result.put("thisMonthVisitsNumber",thisMonthVisitsNumber);
        //result.put("hotSetmeal",hotSetmeal);

        return null;
    }
}
